<?php

namespace app\admin\model;

use think\model\Pivot;

class SystemRoleAdmin extends Pivot
{
    public static function role($id)
    {
        $data = self::where('admin_id', '=', $id)->find();
        return $data['role_id'];
    }
}